package cn.xawl.common.exception;

/**
 * @author lh
 * @date 2020/06/22 13:35:13
 * 10：系统
 * 11：搜索
 * 12：member
 *
 **/
public enum BizCodeEnum {
    UNKNOWN_EXCEPTION(10000, "系统异常"),
    VALID_EXCEPTION(10001, "参数不合法"),

    PRODUCT_UP_EXCEPTION(11000, "ES服务异常"),

    SEND_SMS_EXCEPTION(12000, "频繁发送验证码"),

    USER_EXIST_EXCEPTION(12001, "用户名已存在"),
    PHONE_EXIST_EXCEPTION(12002, "手机号已注册"),
    USER_NOT_EXIST_EXCEPTION(12003, "用户不存在"),
    INVALID_PASSWORD_EXCEPTION(12004, "密码错误");



    private int code;
    private String msg;

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
